import request from '@/utils/request1'

// 查询level列表
export function listLevel(query) {
  return request({
    url: '/system/pos/level/list',
    method: 'get',
    params: query
  })
}

// 查询level详细
export function getLevel(id) {
  return request({
    url: '/system/pos/level/' + id,
    method: 'get'
  })
}

// 新增level
export function addLevel(data) {
  return request({
    url: '/system/pos/level',
    method: 'post',
    data: data
  })
}

// 修改level
export function updateLevel(data) {
  return request({
    url: '/system/pos/level',
    method: 'put',
    data: data
  })
}

// 删除level
export function delLevel(id) {
  return request({
    url: '/system/pos/level/' + id,
    method: 'delete'
  })
}

// 导出level
export function exportLevel(query) {
  return request({
    url: '/system/pos/level/export',
    method: 'get',
    params: query
  })
}